﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Default.master" AutoEventWireup="true"
    CodeFile="List.aspx.cs" Inherits="Movie_List" Title="无标题页" %>

<%@ Register Assembly="WFNetCtrl" Namespace="WFNetCtrl" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%">
        <tr>
            <td colspan="2">
                <%--<div style="width: 100%; height: 400px; overflow: auto">--%>
                    <asp:GridView ID="gvMovie" runat="server" AutoGenerateColumns="False" Width="100%"
                        PageSize="25">
                        <Columns>
                            <asp:ImageField DataImageUrlField="PostLink" HeaderText="海报">
                            </asp:ImageField>
                            <asp:TemplateField HeaderText="名称">
                                <ItemTemplate>
                                    <a href="Browse.aspx?ID=<%# Eval("ID") %>" title='<%# Eval("OriginalName") %>' target="_blank">
                                        <%# DataBinder.Eval(Container.DataItem, "OriginalName")%></a> 
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="年份" DataField="ProduceYear" />
                            <asp:BoundField HeaderText="导演" DataField="Director" />
                            <asp:BoundField HeaderText="简介" DataField="Introduce" />
                        </Columns>
                        <RowStyle HorizontalAlign="Center" BackColor="#EFF3FB" />
                        <EmptyDataTemplate>
                            <font color="red" style="font-size: large; color: red; text-decoration: underline;">
                                无符合条件的记录</font>
                        </EmptyDataTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                <%--</div>--%>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <cc1:DefaultPager ID="pGrid" runat="server" Align="Right" OnClick="pGrid_OnClick">
                </cc1:DefaultPager>
            </td>
        </tr>
    </table>
</asp:Content>
